package o;

import android.view.View;
import com.huawei.appgallery.foundation.card.base.bean.KeywordInfo;
import com.huawei.appgallery.search.ui.cardbean.HistorySearchCardBean;
import huawei.widget.HwButton;
import java.util.List;
import o.cuv.a;

public class cvm extends cvl {
    public cvm(List<KeywordInfo> list) {
        super(list);
    }

    public void onClick(View view) {
        if (view == null || this.ˎ == null || !(this.ˊ.ˌ() instanceof HistorySearchCardBean)) {
            cux.ˏ.ˏ("HistorySearchCardAdapter", " Click item event wrong.");
            return;
        }
        ((HistorySearchCardBean) this.ˊ.ˌ()).ᐝ(((Integer) view.getTag()).intValue());
        this.ˎ.ˏ(7, this.ˊ);
    }

    protected void ˏ(HwButton hwButton, int i) {
        super.ˏ(hwButton, i);
        if (hwButton != null && hwButton.getResources() != null) {
            hwButton.setMaxWidth(hwButton.getResources().getDimensionPixelSize(a.ˊॱ));
        }
    }
}
